<template>
  <div id="index">
    <!-- 侧导航 -->
    <el-container>
      <el-aside width="auto"><NavBar /></el-aside>
      <el-container>
        <!-- 顶部 -->
        <el-header height="auto"><Header /></el-header>
        <!-- 主体 -->
        <el-main><router-view /></el-main>
        <!-- 底部 -->
        <el-footer height="auto">Footer</el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import NavBar from "@/components/NavBar";
import Header from "@/components/Header";
export default {
  name: "",
  data() {
    return {};
  },

  components: {
    NavBar,
    Header,
  },

  methods: {},
};
</script>

<style lang="scss" scoped>
#index {
  height: 100%;
  .el-container {
    height: 100%;
    .el-header,
    .el-main,
    .el-footer {
      padding: 0;
    }
  }
}
</style>